// app.js
App({
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
    console.log(this.globalData.userInfo)
    
  },
  onShow(){
    
    var utoken=wx.getStorageSync('utoken');
    
    var is_shi=wx.getStorageSync('is_shi');
    if(!utoken){
      wx.redirectTo({
        url: '/pages/login/login',
      })
    }else if(!is_shi){
      wx.redirectTo({
        url: '/pages/shiming/shiming',
      })
    }
  },
  globalData: {
    userInfo: null
  }
})
